package com.blog.user.util;

import java.util.Map;

public class SysUtils {

    /**
     * 获取当前用户名
     * @return
     */
    public static String getUserName() {
        // 获取登录用户信息
        Map<String, String> userInfo = TokenDecode.getUserInfo();
        String username = userInfo.get("username");
        System.out.println(userInfo);
        System.out.println(username);
        return username;
    }

}
